package csc.daonjpa.java.domain;

import java.util.ArrayList;
import java.util.List;

public class JSONResponse {
	private boolean success;
	private String message = "";
	private List<String> messages;
	
	
	
	public JSONResponse() {
		super();
		this.message = "";
		this.messages = new ArrayList<String>();
	}
	/**
	 * @return the success
	 */
	public boolean isSuccess() {
		return success;
	}
	/**
	 * @param success the success to set
	 */
	public void setSuccess(boolean success) {
		this.success = success;
	}
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	public void appendMessage(String message) {
		this.messages.add(message);
	}
	/**
	 * @return the messages
	 */
	public List<String> getMessages() {
		return messages;
	}
	/**
	 * @param messages the messages to set
	 */
	public void setMessages(List<String> messages) {
		this.messages = messages;
	}
	
}
